package cn.xgxd.mapper;


import cn.xgxd.pojo.User;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<User> {
//     @Select("select * from user")
//     List<User> selectAll();
//
//     @Select("select * from user where username = #{username} and password = #{password}")
//     List<User> select(@Param("username") String username, @Param("password") String password);
//
//     @Select("select * from user where username = #{username}")
//     User selectByUsername(String username);
//
//     @Insert("insert into user values (null,#{username},#{password})")
//     void add(User user);
//
//     @Delete("delete from user where username = #{username}")
//     void delete(String username);

}
